// 我们的设备信息
<template>
  <div class="equipment-information">
    <h1>我们的设备信息</h1>
    <!-- 轮播图 -->
    <div class="swiper-loop">
      <swiper ref="mySwiper3" :options="swiperOptions3">
        <div
          class="swiper-slide"
          v-for="(data,index) in swiperData"
          :key="index"
          :style="`backgroundImage:url(${data.backgroundImg})`"
        >
          <h1>{{data.page}}</h1>
          <h5>{{data.title}}</h5>
          <p>{{data.p1}}</p>
          <p>{{data.p2}}</p>
        </div>
        <!-- <div class="swiper-pagination" slot="pagination"></div> -->
      </swiper>
    </div>
  </div>
</template>
<script>
export default {
  name: "EquipmentInformation",
  data() {
    return {
      swiperOptions3: {
        pagination: {
          el: ".swiper-pagination"
        },
        slidesPerView: "auto",
        // spaceBetween: 1,
        loopedSlides: 5,
        loop: true,
         autoplay: {
          delay: 2000,
          disableOnInteraction: false
        },
        speed:1000
        
      },
      // 轮播图假数据
      swiperData: [
        {
          backgroundImg: "",
          page: "01",
          title: "电梯智能监测设备",
          p1:
            "电梯维保在智能电梯维保平台记录上，实现一梯一档，电梯安全数据洞察物业管理员可在线申请维保电梯的档案文件，下载打印。",
          p2:
            "电梯维保在智能电梯维保平台记录上，实现一梯一档，电梯安全数据洞察物业管理员可在线申请维保电梯的档案文件"
        },
        {
          backgroundImg: require("../../../assets/img/top_visual.jpg")
        },
        {
          backgroundImg: require("../../../assets/img/智能报价bg.jpg"),
          page: "02",
          title: "电梯智能监测设备",
          p1:
            "电梯维保在智能电梯维保平台记录上，实现一梯一档，电梯安全数据洞察物业管理员可在线申请维保电梯的档案文件，下载打印。",
          p2:
            "电梯维保在智能电梯维保平台记录上，实现一梯一档，电梯安全数据洞察物业管理员可在线申请维保电梯的档案文件"
        },
        {
          backgroundImg: require("../../../assets/img/智能报价bg.jpg")
        }
      ]
    };
  }
};
</script>
<style lang='scss' scoped>
.equipment-information {
  height: 800px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  h1 {
    margin-top: 100px;
    font-size: 40px;
    color: black;
    font-weight: 500;
  }
}
</style>
<style lang="scss">
.equipment-information {
  .swiper-loop {
    margin-top: 130px;
    width: 100%;
    height: 506px;
    .swiper-container {
      width: 100%;
      height: 506px;
      .swiper-slide {
        text-align: center;
        font-size: 18px;
        color: #fff;
        background: no-repeat #4f7bd9 right;
        text-align: left;
        padding-left: 70px;
        padding-right: 50px;
        box-sizing: border-box;
        h1 {
          color: #fff;
          opacity: 0.36;
          font-size: 50px;
          margin-top: 50px;
        }
        h5 {
          font-size: 30px;
        }
        p {
          font-size: 14px;
          opacity: 0.7;
          margin-top: 30px;
          line-height: 25px;
        }
        &:nth-child(2n + 1) {
          width: 37% !important;
        }
        &:nth-child(2n) {
          width: 46% !important;
        }
      }
    }
  }
}
</style>